<?php
global $current_user;
require_once('modules/ACL/ACLController.php');
$module_name = 'edanz_Probation';
$listViewDefs [$module_name] = 
array (
  'NAME' => 
  array (
    'width' => '32%',
    'label' => 'LBL_NAME',
    'default' => true,
    'link' => true,
  ),
  'STATUS' => 
  array (
    'label' => 'LBL_STATUS',
    'width' => '10%',
    'default' => true,
  ),
  'RELATED_EDITOR_NAME' => 
  array (
    'width' => '9%',
    'label' => 'LBL_RELATED_EDITOR_NAME',
    'default' => true,
//	'customCode' => '<a title="{$RELATED_EDITOR_NAME}" href="index.php?action=DetailView&module=edanz_Editor&return_module=edanz_Probation&return_action=ListView&record={$RELATED_EDITOR_ID}">{$RELATED_EDITOR_NAME}</a>',
	'sortable' => true,
    'id' => 'RELATED_EDITOR_ID',
    'module' => 'edanz_Editor',
    'link' => true,
    'related_fields' => array('related_editor_id'),
    'ACLTag' => 'edanz_Editor',
  ),
	'ACTIVATED_DATE' => array (
		'type' => 'datetime',
		'label' => 'LBL_DATE_ACTIVATED',
		'width' => '10%',
		'default' => true,
	),
	'ACTIVATED_BY_NAME' => array (
		'label' => 'LBL_ACTIVATED',
		'width' => '10%',
		'default' => true,
                'link' => $current_user->is_admin==1,
                'module' => 'Users',
                'id' => 'ACTIVATED_BY',
                'related_fields' => array('activated_by'),
                'ACLTag' => 'Users',
	),
	'DEACTIVATED_DATE' => array (
		'type' => 'datetime',
		'label' => 'LBL_DATE_DEACTIVATED',
		'width' => '10%',
		'default' => true,
	),
	'DEACTIVATED_BY_NAME' => array (
		'label' => 'LBL_DEACTIVATED',
		'width' => '10%',
		'default' => true,
                'link' => $current_user->is_admin==1,
                'module' => 'Users',
                'id' => 'DEACTIVATED_BY',
                'related_fields' => array('deactivated_by'),
                'ACLTag' => 'Users',
	),
	'DATE_ENTERED' => array (
		'type' => 'datetime',
		'label' => 'LBL_DATE_ENTERED',
		'width' => '10%',
		'default' => false,
	),
	'CREATED_BY_NAME' => array (
		'label' => 'LBL_CREATED',
		'width' => '10%',
		'default' => false,
	),
	'DATE_MODIFIED' => array (
		'type' => 'datetime',
		'label' => 'LBL_DATE_MODIFIED',
		'width' => '10%',
		'default' => false,
	),
	'MODIFIED_BY_NAME' => array (
		'label' => 'LBL_MODIFIED_NAME',
		'width' => '10%',
		'default' => false,
	),
);
?>
